﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace May_26_2021
{
    class Teachers
    {
        private string name;
        private string job;

        public string Name { get => name; set => name = value; }
        public string Job { get => job; set => job = value; }

        public Teachers() {

        }
        public Teachers(string name,string job)
        {
            this.Name = name;
            this.Job = job;
        }

        public virtual void Work2()
        {
            Console.WriteLine();
        }
        public void Work()
        {
            Console.WriteLine("我叫{0}我是{1}我在上课",this.Name,this.Job);
        }
        
    }
}
